package com.fantabest.common.client.model;

import com.extjs.gxt.ui.client.data.BaseTreeModel;
import com.extjs.gxt.ui.client.event.EventType;

public class MenuChildData extends BaseTreeModel {

	public MenuChildData(String name, EventType eventToDispatch) {
		set("name", name);
		set("eventToDispatch",eventToDispatch);
	}

	public String getLabel()	{
		return (String)get("name");
	}
	
	public EventType getEventToDispatch()	{
		return (EventType)get("eventToDispatch");
	}

	public String toString() {
		return getLabel();
	}
	
}
